package week6;
import java.util.*;
/**
 * Created by dell on 2017/3/28.
 */
class Student2 {
    private String name;
    private String number;
    Student2(String name, String number){
        this.name = name;
        this.number = number;
    }
    @Override
    public String toString() {
        return String.format("(%s, %s)", name, number);
    }
}
public class CollectionStudent {
    public static void main(String[] args){
        Set students = new HashSet();
        students.add(new Student2("Justin","B8123456"));
        students.add(new Student2("Lucy","B8456871"));
        students.add(new Student2("Justin","B8123456"));
        System.out.println(students);
    }
}
